<template>
  <div>
    <el-button @click="clickFn">button</el-button>
    <el-card>{{flag}}</el-card>
    <el-divider></el-divider>
    <child :flag="flag"></child>
  </div>
</template>

<script>
import child from './child.vue'
export default {
  components: { child },
  data () {
    return {
      flag: {
        num: 10,
        count: 38
      }
    }
  },
  methods: {
    clickFn () {
      this.flag.count++
    }
  }
}
</script>
